mui.init();

var detailDta;
mui.plusReady(function () {
    var api_host = plus.storage.getItem('HOST_URL');
    detailDta = new Vue({
        el: '#detailBox',
        data: {
            data:'',
        },
        mounted() {
            this.getContent();
        },
        methods: {
            getContent:function () {
                var self = this;
                showWatting();
                mui.ajax({
                    url: api_host + '/api/other/other/getNoticeDetail',
                    dataType: 'json',
                    type: 'get',
                    success: function (msg) {
                        if (msg.code == 1) {
                            self.data = msg.data;
                        } else {
                            mui.toast(msg.msg, {duration: '300',type:'div'});
                        }
                    },
                    error: function (xhr, type, errorThrown) {
                        mui.toast('请求失败请重试', {duration: '1000',type:'div'});
                    },
                    complete:function () {
                        plus.nativeUI.closeWaiting();
                    }
                });
            }
        }

    })
})